import random

def get_computer_choice():
    choices = ["剪刀", "石头", "布"]
    computer_choice = random.choice(choices)
    return computer_choice

def determine_winner(user_choice, computer_choice):
    if user_choice == computer_choice:
        return "平局"
    elif (
        user_choice == "剪刀" and computer_choice == "布" or
        user_choice == "石头" and computer_choice == "剪刀" or
        user_choice == "布" and computer_choice == "石头"
    ):
        return "用户胜利"
    else:
        return "电脑胜利"
